home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
i
/
imagefxv2.1a.lha
/
ImageFX
/
Rexx
/
AutoFX
/
EOT_RadialStar.ifx.pre
< prev
next >
Wrap
Text File
|
1996-03-02
|
1KB
|
44 lines
/*
* RadialStar.ifx.pre
* Written by Thomas Krehbiel
*
* Radial Star effect. (A twinkling star.)
*
* Inputs:
* Word(Arg(1),1) = Sequence number (?)
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
minradius = GETCLIP('Autofx_RadialStar_Min')
maxradius = GETCLIP('Autofx_RadialStar_Max')
centerx = GETCLIP('Autofx_RadialStar_CenterX')
centery = GETCLIP('Autofx_RadialStar_CenterY')
IF centerx = "" THEN centerx = -1
IF centery = "" THEN centery = -1
IF maxradius = "" THEN maxradius = 100
IF minradius = "" THEN minradius = 20
Gadget.1 = 'INTEGER 150 5 60 14 "Twinkle Radius Min:"' minradius
Gadget.2 = 'INTEGER 260 5 60 14 "Max:"' maxradius
Gadget.3 = 'INTEGER 150 20 60 14 "Twinkle Center X:"' centerx
Gadget.4 = 'INTEGER 260 20 60 14 "Y:"' centery
Gadget.5 = 'TEXT 185 36 1 1 "(-1,-1 selects the exact center of the image.)" JU=2'
Gadget.6 = 'END'
NewComplexRequest '"Twinkle, Twinkle Little Radial Star"' Gadget 370 50
IF rc ~= 0 THEN EXIT rc
CALL SETCLIP('Autofx_RadialStar_Min', result.1)
CALL SETCLIP('Autofx_RadialStar_Max', result.2)
CALL SETCLIP('Autofx_RadialStar_CenterX', result.3)
CALL SETCLIP('Autofx_RadialStar_CenterY', result.4)
EXIT